﻿<%@ page language="java" import="java.util.*, java.text.*,com.zjut.zs.util.tools.*,com.zjut.an.util.tools.*,com.zjut.an.util.system.*,
com.zjut.an.config.manager.*, com.zjut.an.config.dao.*,com.zjut.zs.school.manager.*, com.zjut.zs.school.dao.*,
com.zjut.zs.user.manager.*, com.zjut.zs.user.dao.*,com.zjut.zs.userstatus.manager.*, com.zjut.zs.userstatus.dao.*,
com.zjut.an.webclass.manager.*, com.zjut.an.webclass.dao.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../plugins/assets/plugins/jquery-3.5.1.min.js"></script>
<script type="text/javascript">
$(function(){	
	//导航切换
	$(".menuson li").click(function(){
		$(".menuson li.active").removeClass("active")
		$(this).addClass("active");
	});
	$('.title').click(function(){
		var $ul = $(this).next('ul');
		$('dd').find('ul').slideUp();
		if($ul.is(':visible')){
			$(this).next('ul').slideUp();
		}else{
			$(this).next('ul').slideDown();
		}
	});
})
</script>
</head>
<%
AnConfigManager anconfig = (AnConfigManager) SpringContextUtil.getBean("AnConfigManager");
ZsHTMLCreat html = (ZsHTMLCreat) SpringContextUtil.getBean("ZsHTMLCreat");
ZsSchoolManager zsManager = (ZsSchoolManager) SpringContextUtil.getBean("ZsSchoolManager");
ZsUserStatusManager zusManager = (ZsUserStatusManager) SpringContextUtil.getBean("ZsUserStatusManager");
AnWebclassManager wManager = (AnWebclassManager) SpringContextUtil.getBean("AnWebclassManager");
ZsSchool school = new ZsSchool();
school = (ZsSchool)zsManager.getDataByInstance(1,1,null,null,school).getObjects().get(0);

//生成随机数x
Random random=new Random();
double x=random.nextDouble();
 %>
<body style="background:#f0f9fd;">
	<div class="lefttop"><span></span><a href="index.jsp?x=<%=x %>" target="rightFrame" style="color:#fff">首　　页</a></div>
    
    <dl class="leftmenu">
    <dd>
	    <div class="title">
	    <span><img src="images/leftico01.png" /></span>报考流程
	    </div>
    	<ul class="menuson">
    	<li class="active"><cite></cite><a href="zs_status.jsp?x=<%=x %>" target="rightFrame">报考流程</a><i></i></li>
        </ul>    
    </dd>
<%if(session.getAttribute("zsUser")!=null) { 
	ZsUser user = (ZsUser)session.getAttribute("zsUser");
	ZsUserStatus userstatus = zusManager.getDataByUser(user);
%>        
    <dd>
	    <div class="title">
	    <span><img src="images/leftico03.png" /></span>考生信息
	    </div>
    	<ul class="menuson">    	  
        <li><cite></cite><a href="zs_user.jsp?x=<%=x %>" target="rightFrame" disabled="ture">注册信息</a><i></i></li>
    	<li><cite></cite><a href="<%=anconfig.getSingleConfigInfoByName("考生信息查看页面") %>?x=<%=x %>" target="rightFrame">考生信息</a><i></i></li>
        </ul>    
    </dd>
    <%if(!Status.HIDDEN.getStatus().equals(school.getScAppActive())){%>
    <dd>
    <div class="title">
    <span><img src="images/leftico04.png" /></span>材料填写提交
    </div>
    <ul class="menuson">  
    		<li><cite></cite><a href="zs_filesend_zjut.jsp" target="rightFrame">浙工大材料填写</a><i></i></li> 
	        <%=html.getMenuString(school, userstatus, "scExvalueActive","zs_exvalue.jsp?x="+x, "报考信息") %>
	        <%=html.getMenuString(school, userstatus, "scCjActive","zs_xy.jsp?x="+x, "补充信息") %>
	        <%=html.getMenuString(school, userstatus, "scZxlbActive","zs_zxlb.jsp?x="+x, "专项类别获奖") %>
	        <%=html.getMenuString(school, userstatus, "scHjqkActive","zs_hjqk.jsp?x="+x, "其他获奖") %>
	        <%=html.getMenuString(school, userstatus, "scShhdActive","zs_shhd.jsp?x="+x, "社会活动情况") %>
	    	<%=html.getMenuString(school, userstatus, "scFilesendActive","zs_filesend.jsp?x="+x, "材料提交") %> 
	        <%=html.getMenuString(school, userstatus, "scBackActive","zs_sendback.jsp?x="+x, "申请撤回") %>  
        </ul>     
    </dd> 
    <%} %>
    <dd>
    <div class="title">
    <span><img src="images/leftico04.png" /></span>报考进程
    </div>
    <ul class="menuson">      	    	
    	<%=html.getMenuString(school, userstatus, "scEmsActive","zs_ems.jsp?x="+x, "EMS单号录入") %>  	
    	<%=html.getMenuString(school, userstatus, "scPayActive",anconfig.getSingleConfigInfoByName("网上缴费页面"), "报考缴费") %> 
    	<%=html.getMenuString(school, userstatus, "scNoticeActive","zs_noticeprint.jsp?x="+x, "测试通知单") %>
    	<%if(Status.PAYSTATUS_YES.getStatus().equals(userstatus.getPayStatus())){ %>
    	<%=html.getMenuString(school, userstatus, "scPrintExamActive","zs_examprint.jsp?x="+x, anconfig.getSingleConfigInfoByName("准考证名称")) %>
    	<%} else { %>
    	<li><cite></cite><a href="javascript:alert('尚未满足条件或者尚未启用该功能');" style='color:#666;' title = '尚未满足条件或者尚未启用该功能'><%=anconfig.getSingleConfigInfoByName("准考证名称") %></a><i></i></li>
    	<%} %>
        </ul>     
    </dd> 
    
    <dd>
    <div class="title">
    <span><img src="images/leftico04.png" /></span>报考查询
    </div>
    <ul class="menuson">
     	<%=html.getMenuString(school, userstatus, "scSearchActive","zs_result.jsp?x="+x, "测试结果查询") %>  
        </ul>     
    </dd> 
<%} %>
    <dd>
    <div class="title">
    <span><img src="images/leftico02.png" /></span>公告通知
    </div>
    <ul class="menuson">
    <%
    List list = wManager.getMenuTopDatas();
    for (int i=0; i<list.size(); i++){
    	AnWebclass webclass = (AnWebclass)list.get(i);
     %>
        <li><cite></cite><a href="zs_newsclass.jsp?wcId=<%=webclass.getWcId() %>" target="rightFrame"><%=webclass.getWcName() %></a><i></i></li>
    <%} %>
        </ul>     
    </dd> 
    
    </dl>
    
</body>
</html>
